package com.dgt.trade.service.impl;

import com.dgt.trade.dao.RuleDao;
import com.dgt.trade.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class RuleServiceImpl implements RuleService {

    @Autowired
    private RuleDao ruleDao;

    @Override
    public HashMap<String,Object> getRuleByCode(String code) {
        return ruleDao.getRuleByCode(code);
    }
}
